package cn.tedu.inter2;
//8.创建接口的测试类
public class TestPerson {
    public static void main(String[] args) {
        //9.创建接口实现类的对象用作测试
        Student s = new Student();
        s.eat();
        s.sleep();
        Teacher t = new Teacher();
        t.eat();
        t.sleep();
        Parents p = new Parents();
        p.eat();
        p.sleep();
    }
}
